package org.appfuse.model;

import java.sql.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * @struts.form include-all="true" extends="org.appfuse.webapp.form.BaseForm"
 * @hibernate.class table="cgjxx"
 */

public class Cgjxx extends org.appfuse.model.BaseObject implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -4792093143218317268L;
	private Integer id;
     private String gb;
     private Date jrsj;
     private Date lksj;
     private String szdqjdw;
     private String cgmd;
     private String cjsf;
     private String pcdw;
 	private BasicInfo basicInfo;
 	private String a00;
	protected String gbbc;
	protected String pcdwmcbc;
	protected String cgspdw;
	protected String cgspdwmcbc;
	protected String cgspwh;
	protected String cgjfly;
	protected String cgtzmc;
	protected Date cgrq;
	protected Date hgrq;
	protected String cgbz;

    // Constructors

    public String getCgbz() {
		return cgbz;
	}

	public void setCgbz(String cgbz) {
		this.cgbz = cgbz;
	}

	public String getCgjfly() {
		return cgjfly;
	}

	public void setCgjfly(String cgjfly) {
		this.cgjfly = cgjfly;
	}

	public Date getCgrq() {
		return cgrq;
	}

	public void setCgrq(Date cgrq) {
		this.cgrq = cgrq;
	}

	public String getCgspdw() {
		return cgspdw;
	}

	public void setCgspdw(String cgspdw) {
		this.cgspdw = cgspdw;
	}

	public String getCgspdwmcbc() {
		return cgspdwmcbc;
	}

	public void setCgspdwmcbc(String cgspdwmcbc) {
		this.cgspdwmcbc = cgspdwmcbc;
	}

	public String getCgspwh() {
		return cgspwh;
	}

	public void setCgspwh(String cgspwh) {
		this.cgspwh = cgspwh;
	}

	public String getCgtzmc() {
		return cgtzmc;
	}

	public void setCgtzmc(String cgtzmc) {
		this.cgtzmc = cgtzmc;
	}

	public String getGbbc() {
		return gbbc;
	}

	public void setGbbc(String gbbc) {
		this.gbbc = gbbc;
	}

	public Date getHgrq() {
		return hgrq;
	}

	public void setHgrq(Date hgrq) {
		this.hgrq = hgrq;
	}

	public String getPcdwmcbc() {
		return pcdwmcbc;
	}

	public void setPcdwmcbc(String pcdwmcbc) {
		this.pcdwmcbc = pcdwmcbc;
	}

	public String getA00() {
		return a00;
	}

	public void setA00(String a00) {
		this.a00 = a00;
	}

	public BasicInfo getBasicInfo() {
		return basicInfo;
	}

	public void setBasicInfo(BasicInfo basicInfo) {
		this.basicInfo = basicInfo;
		this.a00 = basicInfo.getId();
	}

	/** default constructor */
    public Cgjxx() {
    }

    /** full constructor */
    public Cgjxx(BasicInfo baiscInfo, String gb, Date jrsj, Date lksj, String szdqjdw, String cgmd, String cjsf, String pcdw, String userid) {
        this.gb = gb;
        this.jrsj = jrsj;
        this.lksj = lksj;
        this.szdqjdw = szdqjdw;
        this.cgmd = cgmd;
        this.cjsf = cjsf;
        this.pcdw = pcdw;
        this.basicInfo = basicInfo;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getGb() {
        return this.gb;
    }
    
    public void setGb(String gb) {
        this.gb = gb;
    }

    public Date getJrsj() {
        return this.jrsj;
    }
    
    public void setJrsj(Date jrsj) {
        this.jrsj = jrsj;
    }

    public Date getLksj() {
        return this.lksj;
    }
    
    public void setLksj(Date lksj) {
        this.lksj = lksj;
    }

    public String getSzdqjdw() {
        return this.szdqjdw;
    }
    
    public void setSzdqjdw(String szdqjdw) {
        this.szdqjdw = szdqjdw;
    }

    public String getCgmd() {
        return this.cgmd;
    }
    
    public void setCgmd(String cgmd) {
        this.cgmd = cgmd;
    }

    public String getCjsf() {
        return this.cjsf;
    }
    
    public void setCjsf(String cjsf) {
        this.cjsf = cjsf;
    }

    public String getPcdw() {
        return this.pcdw;
    }
    
    public void setPcdw(String pcdw) {
        this.pcdw = pcdw;
    }

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((basicInfo == null) ? 0 : basicInfo.hashCode());
		result = PRIME * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Cgjxx other = (Cgjxx) obj;
		if (a00 == null) {
			if (other.a00 != null)
				return false;
		} else if (!a00.equals(other.a00))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("gb", this.gb).append("pcdw",
				this.pcdw).append("id", this.id).append("cjsf", this.cjsf)
				.append("szdqjdw", this.szdqjdw).append("lksj", this.lksj)
				.append("cgmd", this.cgmd).append("basicInfo", this.basicInfo)
				.append("jrsj", this.jrsj).toString();
	}


   








}